<%@page import="com.lagou.entity.User"%>
<%@page import="com.lagou.entity.Business"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'MyJsp.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	 <link rel="Shortcut Icon" href="h/images/favicon.ico">
    <link rel="stylesheet" type="text/css" href="style/css/style.css" />
    <link rel="stylesheet" type="text/css" href="style/css/external.min.css" />
    <link rel="stylesheet" type="text/css" href="style/css/popup.css" />
    <script src="style/js/jquery.1.10.1.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="style/js/jquery.lib.min.js"></script>
    <script src="style/js/ajaxfileupload.js" type="text/javascript"></script>
    <script type="text/javascript" src="style/js/additional-methods.js"></script>
     <script type="text/javascript" src="style/js/conv.js"></script>

  </head>
  
  <body>
    <div id="body"><% 
		Business user=(Business)session.getAttribute("business");
		User u=(User)session.getAttribute("User");
		
		if(user==null) {%>
			  <jsp:include page="geren_resume/gerentop.jsp"></jsp:include>
		<%}else {%>
			<jsp:include page="company_resume/top.jsp"></jsp:include>
		<%} %>
     
    
        <div id="container">

            <div class="clearfix">
                <div class="content_l">
                    <form id="companyListForm" name="companyListForm" method="post" action="CompanyServlet?op=queryCompang1">
                        <input type="hidden" id="city" name="city" value="全国" />
                        <input type="hidden" id="fs" name="fs" value="1" />
                        <input type="hidden" id="ifs" name="ifs" value="" />
                        <input type="hidden" id="ol" name="ol" value="" />
                        <dl class="hc_tag">
                            <dt>
                                <!--  <h2 class="fl">热门公司</h2> -->
                                <ul class="workplace reset fr" id="workplaceSelect">
                                    <li>
                                        <a href="javascript:void(0)" class="current">全国</a>
                                        |
                                    </li>
                                      <li >
                                	<a href="javascript:void(0)" >北京</a> 
                                	                                	|
                                	                                </li>
	                                                            <li >
                                	<a href="javascript:void(0)" >上海</a> 
                                	                                	|
                                	                                </li>
	                                                            <li >
                                	<a href="javascript:void(0)" >广州</a> 
                                	                                	|
                                	                                </li>
	                                                            <li >
                                	<a href="javascript:void(0)" >深圳</a> 
                                	                                	|
                                	                                </li>
	                                                            <li >
                                	<a href="javascript:void(0)" >成都</a> 
                                	                                	|
                                	                                </li>
	                                                            <li >
                                	<a href="javascript:void(0)" >杭州</a> 
                                	                                	|
                                	                                </li>
	                                                            <li >
                                	<a href="javascript:void(0)" >武汉</a> 
                                	                                	|
                                	                                </li>
	                                                            <li >
                                	<a href="javascript:void(0)" >厦门</a> 
                                	                                	|
                                	                                </li>
                                    <li class="more">
                                        <a href="javascript:void(0)">其他</a>
                                        <div class="triangle citymore_arrow"></div>
                                    </li>
                                    <li id="box_expectCity" class="searchlist_expectCity dn">
                                        <span class="bot"></span>
                                        <span class="top"></span>
                                        <dl>
                                            <dt>所有城市</dt>
                                            <dd><c:forEach items="${mapCompany}" var="company" varStatus="mapCompany.keySet()">
                                                <c:if test="${company.key!=null }">
                                                
                                                <span>${company.key}</span></c:if> </c:forEach>
                                            </dd>
                                        </dl>
                                    </li>
                                </ul>
                            </dt>
                            <dd>
                                <dl>
                                    <dt>发展阶段：</dt>
                                    <dd>
                                        <a href="javascript:void(0)">初创型</a>
                                        <a href="javascript:void(0)">成长型</a>
                                        <a href="javascript:void(0)">成熟型</a>
                                        <a href="javascript:void(0)">已上市</a>
                                    </dd>
                                </dl>
                                <dl>
                                    <dt>行业领域：</dt>
                                    <dd>
                                    <dd><c:forEach items="${mapfid}" var="fid" varStatus="mapfid.keySet()">
                                         <a href="javascript:void(0)">${fid.key}</a></c:forEach>
                                    </dd>
                                </dl>
                                <!-- <dl>
	                            <dt>热门标签：</dt>
	                            <dd>
	                                	                                			                               	<a href="javascript:void(0)">年底双薪</a>
	                                	                                			                               	<a href="javascript:void(0)">五险一金</a>
		                                	                                	                            </dd>
	                        </dl> -->
                            </dd>
                        </dl>
                        <ul class="hc_list reset" id="dyn">
                        <c:forEach items="${list}" var="l" varStatus="st">
                           <c:if test="${st.count%3==1}">
                           <li style="clear:both;"></c:if>
                           <c:if test="${st.count%3!=1}">
                           <li></c:if>
                                <a href="TogetcompanyServlet?edithomepage=1&cid=${l.cid}" target="_blank">
                                    <h3 title="CCIC">${l.cshortName }</h3>
                                    <div class="comLogo">
                                        <img src="ImgShowServlet?fileName=${l.clogo}" width="190" height="190" alt="${l.cshortName }" />
                                        <ul>
                                            <li>${l.fid}</li>
                                            <li>${l.ccid},${l.cdevelopment}</li>
                                        </ul>
                                    </div>
                                </a>
                                <c:forEach  items="${maps}" var="m">
                                <c:if test="${m.key==l.cshortName}"><c:forEach items="${m.value}" var="ms">
                                <h2> ${ms}</h2></c:forEach></c:if></c:forEach>
                                <ul class="reset ctags">
                                    <li>${l.cdevelopment}</li>
                                    <li>${l.ctag}</li>
                                </ul>
                            </li></c:forEach>
                           
                            <div style="width: 500px; height: 100px; margin-left: 130px;margin-top: 60px;float:left;" >
                <input type="button" onclick="shou()" value="首页">
                <input type="button" onclick="shang(${index })" value="上一页" >
                <input type="button" onclick="xia(${index })" value="下一页" >
                <input type="button" onclick="wei()" value="尾页">
                <span>当前页数[${index }]&nbsp;&nbsp;总页数[${pagecount}]</span>
        </div>
                        </ul>
 
                       
                    </form>
                </div>
                <div class="content_r">
                    <div class="subscribe_side">
                    </div>
                    <div class="greybg qrcode mt20">
                        <img src="style/images/companylist_qr.png" width="242" height="242" alt="拉勾微信公众号二维码" />
                        <span class="c7">扫描拉勾二维码，微信轻松搜工作</span>
                    </div>
                    <!-- <a href="h/speed/speed3.html" target="_blank" class="adSpeed"></a> -->
                    <a href="h/subject/jobguide.html" target="_blank" class="eventAd">
                        <img src="style/images/subject280.jpg" width="280" height="135" />
                    </a>
                    <a href="h/subject/risingPrice.html" target="_blank" class="eventAd">
                        <img src="style/images/rising280.png" width="280" height="135" />
                    </a>
                </div>
            </div>

            <input type="hidden" value="" name="userid" id="userid" />
<script type="text/javascript">
var i=${index};
//尾页直接给一个最大值首页直接给1传入
var j=99;
var k=1;
/* alert(i); */
function shou() {
		$.post("CompanyServlet?op=queryCompang3",{index:k+"/sy"},function(obj){		
			$("#dyn").html(obj);
	}) 
}
function wei() {
		$.post("CompanyServlet?op=queryCompang3",{index:j+"/wy"},function(obj){		
			$("#dyn").html(obj);
	}) 
}
function shang(i) {	
	//方法必须传值,也就是当前index
	$.post("CompanyServlet?op=queryCompang3",{index:i+"/s"},function(obj){		
		$("#dyn").html(obj);//传本页数字加字母到weiyeServlet判断
}) 
}
function xia(i) {
	//方法必须传值,也就是当前index
	 $.post("CompanyServlet?op=queryCompang3",{index:i+"/x"},function(obj){		
		$("#dyn").html(obj);
})  
}
</script>
            <script type="text/javascript" src="style/js/company_list.min.js"></script>
            <div class="clear"></div>
            <input type="hidden" id="resubmitToken" value="" />
            <a id="backtop" title="回到顶部" rel="nofollow"></a>
        </div><!-- end #container -->
    </div><!-- end #body -->
    <div id="footer">
        <div class="wrapper">
            <a href="h/about.html" target="_blank" rel="nofollow">联系我们</a>
            <a href="h/af/zhaopin.html" target="_blank">互联网公司导航</a>
            <a href="http://e.weibo.com/lagou720" target="_blank" rel="nofollow">拉勾微博</a>
            <a class="footer_qr" href="javascript:void(0)" rel="nofollow">拉勾微信<i></i></a>
            <div class="copyright">&copy;2013-2014 Lagou <a target="_blank"
                    href="http://www.miitbeian.gov.cn/state/outPortal/loginPortal.action">京ICP备14023790号-2</a></div>
        </div>
    </div>

    <script type="text/javascript" src="style/js/core.min.js"></script>
    <script type="text/javascript" src="style/js/popup.min.js"></script>

    <!--  -->

  </body>
</html>
